﻿using System;
using System.IO;
using System.Data;
using System.Configuration;
using System.Collections;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;
using System.Text;

using CE.User;
using CE.Global;
using CE.Database;
using CE.Provider;
using CE.CarInsurance;
using CE.Company;
using CE.Mail;
using CE.InputOut;

public partial class car_insurance_your_request : System.Web.UI.Page
{
    protected void Page_Load(object sender, EventArgs e)
    {

        if (!Page.IsPostBack)
        {
            txtFullName.Text = Session[General.UserName].ToString();
            txtMobileNo.PhoneNo = Session[General.UserPhoneNo].ToString();
            txtEmail.Text = Session[General.UserEmail].ToString();
        }

    }

    protected void btnBack_Click(object sender, EventArgs e)
    {
        Response.Redirect("results-new.aspx");
    }

    protected void btnSubmit_Click(object sender, EventArgs e)
    {
        if (rdoBuy.Checked)
        {
            if (Convert.ToInt64(Session[CE.Global.General.ProviderCompanyId].ToString()) == 29)
            {
                Response.Redirect("~/car-insurance/proposalforms/liberty_proposal_form.aspx");
            }
            else if (Convert.ToInt64(Session[CE.Global.General.ProviderCompanyId].ToString()) == 30)
            {
                Response.Redirect("~/car-insurance/proposalforms/etiqa_proposal_form.aspx");
            }
            else if (Convert.ToInt64(Session[CE.Global.General.ProviderCompanyId].ToString()) == 23)
            {
                Response.Redirect("~/car-insurance/proposalforms/hsbc_proposal_form.aspx");
            }
        }

    }
}
